<template>
	<div class="Word">
		<a href="#" @click.prevent="open_pageoffice('Word', '张三')">POBrowser方式打开Word文档</a><br><br><br>
		<router-view></router-view>
	</div>
</template>

<script>
import request from '@/utils/request'
import { POBrowser } from 'js-pageoffice'
export default {
	name: 'index',
	data() {
		return {
			titleText: '',
			count: 0
		}
	},
	created: function () {
		return request({
			url: '/index',
			method: 'get',
		}).then(response => {
			this.titleText = response;
		});
	},
	methods: {
		//控件中的一些常用方法都在这里调用，比如保存，打印等等	      
		open_pageoffice(vue_page_url, param) {
			POBrowser.openWindow(vue_page_url, 'width=1200px;height=800px;', param);
		}

	}

}
</script>
<style scoped>
a {
	display: block;
	margin-top: 30px;
	text-decoration: underline;
}
</style>
